package cn.sz.hy.adapter.center;

import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Combo;

import cn.sz.hy.adapter.MouseAdapterBasic;
import cn.sz.hy.ui.frame.CenterPanel;

public class DownColumnAdapter extends MouseAdapterBasic {
	private CenterPanel center;

	public DownColumnAdapter(CenterPanel center) {
		this.center = center;
	}

	@Override
	protected void execute(MouseEvent e) {
		Combo editList = center.getEditList();
		int index = editList.getSelectionIndex();
		center.changeRow(index, index + 1);
		center.updateEditSelect();
		center.getEditList().select(index + 1);
	}

}
